package com.littlec.sdk.manager;

import com.littlec.sdk.utils.CMChatListener;
import com.littlec.sdk.utils.CMContactListener;
import com.littlec.sdk.utils.SdkUtils;

public class CMIMHelper {
	/**
	 * 获取账号管理类实例
	 * 
	 * @return
	 */
	public static CMAccountManager getCmAccountManager() {
		return CMAccountManager.getInstance();
	}

	public static CMContactManager getCmContactManager() {
		return CMContactManager.getInstance();
	}

	public static CMMessageManager getCmMessageManager() {
		return CMMessageManager.getInstance();
	}

	public static CMGroupManager getCmGroupManager() {
		return CMGroupManager.getInstance();
	}

	public static HistoryMessageManager getHistoryMessageManager() {
		return HistoryMessageManager.getInstance();
	}

	public static void addListeners(CMContactListener contactlistener,
			CMChatListener.CMMessageReceivedCallBack messageReceivedCallBack)
			throws NullPointerException {
		SdkUtils.addListeners(contactlistener, messageReceivedCallBack);
	}
}
